package com.songxh.core.exception;

/**
 * 自定义异常
 * @author songxh
 * @create 2022-12-19-11:29
 */
public class BizException extends RuntimeException {

    private static final long serialVersionUID = -6014959869756051160L;

    private Integer errorCode;

    public BizException(String errorCode, String message) {
        super(message);
    }

    public BizException(Integer errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public BizException(String message) {
        super(message);
    }

    public BizException(Throwable cause) {
        super(cause);
    }


    public BizException(String message, Throwable cause) {
        super(message, cause);
    }

    public BizException(Integer errorCode, String message, Throwable cause) {
        super("错误码【" + errorCode + "】" + "，错误信息【" + message + "】", cause);
    }
}
